//
//  RequestConstants.m
//  TYEJ
//
//  Created by CC on 2019/11/18.
//  Copyright © 2019 CC. All rights reserved.
//

#import "RequestConstants.h"

#ifdef DEBUG
NSString* const APP_URIHOST = @"http://47.110.71.232/";
NSString* const APP_URISCHEME = @"http://47.110.71.232/index.php/cike/";
#else
NSString* const APP_URIHOST = @"http://47.105.84.105/produce/";
NSString* const APP_URISCHEME = @"http://47.105.84.105/produce/api/index.php";
#endif

#pragma mark - Login
NSString* const USER_ONCE_LOGIN = @"user/one_click_login";
NSString* const USER_VERIFY = @"user/verify";
NSString* const USER_LOGIN = @"user/login";

#pragma mark - Feed
NSString* const ACTIVITY_USER_LIST = @"activity/userLst";

#pragma mark -  OSS
#ifdef DEBUG
NSString* const TY_ALIYUN_OSS = @"http://47.105.84.105/test/aliyun-openapi/roleToken.php";
#else
NSString* const TY_ALIYUN_OSS = @"http://47.105.84.105/produce/aliyun-openapi/roleToken.php";
#endif

@implementation RequestConstants

@end

@implementation NSString (Article)
- (NSString*)articleUrl {
  return [NSString stringWithFormat:@"%@html/article.html?articleId=%@", APP_URIHOST, self];
}
@end
